package com.example.securitydemo.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.zalando.problem.spring.web.advice.ProblemHandling;

/**
 * Created by Guaguaerhao on 2021/4/17 09:33
 */
@ControllerAdvice
public class ExceptionHandler implements ProblemHandling {
    // 是否返回堆栈信息
    @Override
    public boolean isCausalChainsEnabled() {
        return true;
    }
}
